package com.luych.toolbox.common.event.base.service;

import com.luych.toolbox.common.feign.param.gateway.center.WebSocketEvent;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

public class WebSocketEventRemoteApplicationEvent extends RemoteApplicationEvent {

    private final WebSocketEvent event;

    public WebSocketEventRemoteApplicationEvent(String originService, String destinationService, WebSocketEvent event) {
        super(new Object(), originService, destinationService);
        this.event = event;
    }

    public WebSocketEvent getEvent() {
        return event;
    }
}
